package cn.iocoder.yudao.module.trade.dal.mysql.lifecircle;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.trade.controller.admin.lifecircle.vo.LifeCircleStoreTypePageReqVO;
import cn.iocoder.yudao.module.trade.dal.dataobject.lifecircle.LifeCircleStoreTypeDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * Mapper
 *
 * @author owen
 */
@Mapper
public interface LifeCircleStoreTypeMapper extends BaseMapperX<LifeCircleStoreTypeDO> {

    default PageResult<LifeCircleStoreTypeDO> selectPage(LifeCircleStoreTypePageReqVO storeTypeDO) {
        return selectPage(storeTypeDO, new LambdaQueryWrapperX<LifeCircleStoreTypeDO>()
                .likeIfPresent(LifeCircleStoreTypeDO::getTypeName, storeTypeDO.getTypeName())
                .betweenIfPresent(LifeCircleStoreTypeDO::getCreateTime, storeTypeDO.getCreateTime()));
    }

}